package com.prs.crm.dao.hr;

import java.util.Collection;
import java.util.List;

import com.prs.crm.dao.BaseDao;

import com.prs.crm.domain.hr.Check;

import com.prs.crm.domain.hr.Person;

public interface CheckDao extends BaseDao<Check>{

	/**
	 * 获取员工在一月内所有的考勤记录
	 * @param userId 用户编号
	 * @param month  月份
	 * @return
	 */
	Collection<Check> getPersonChecksInMonth(Integer userId,String month);
	List <Check> getAllCheck();
	
	void saveOrUpdate(Check check);
	
	public Check getCheckByname(String name, String date);
	public List<Check>  getChecks(String name,String date);
	List<Check> getCheckByPersonInMonth(String name, String months);	
	public Collection<Object[]> getCheckByPersonydm(Collection<Person> persons ,String date);

}
